import request from "api"

//新增 add
export function submitFormAdd(name, owner, time) {
    return request({
        method: "post",
        url: "TK/addTK.php",
        data: {
            name,
            owner,
            time
        }
    })
}
//删除 delete
export function deleteListItem(tk_id) {
    return request({
        url: "TK/delTK",
        method: "post",
        data: {
            tk_id: tk_id
        }
    })
}
//编辑 modify
export function submitFormModify(name, time, tk_id, owner) {
    return request({
        method: "post",
        url: "/admin/modify/TK/" + tk_id,
        data: {
            name,
            time,
            tk_id,
            owner,
        }
    })
}
//刷新
export function GetAllStudent() {
    return request({
        method: "get",
        url: "/admin/tk/0",
    })
}